package src.main.observer;

/**
 * 具体的观察者角色类
 * @author liayun
 * @create 2021-09-17 17:38
 */
public class WeiXinUser implements Observer {

    private String name;

    public WeiXinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message); // 谁接收到了什么更新的消息
    }

}
